package edu.uc.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import edu.uc.bean.Goods;
import edu.uc.bean.JvmData;
import edu.uc.dao.GoodsDao;
import edu.uc.dao.JvmDataDao;
import edu.uc.service.JvmDataService;
@Service("jvmDataService")
public class JvmDataServiceImpl extends BaseServiceImpl<JvmData> implements JvmDataService {

private JvmDataDao jvmDataDao = null;
	
	public JvmDataDao getJvmDataDao() {
		return jvmDataDao;
	}
	
	@Autowired
	@Qualifier("jvmDataDao")
	public void setJvmDataDao(JvmDataDao jvmDataDao) {
		this.jvmDataDao = jvmDataDao;
	}
	
	@Override
	public Long insert(JvmData bean) {
		// TODO Auto-generated method stub
		return jvmDataDao.insert(bean);

	}

	@Override
	public Long delete(Long id) {
		// TODO Auto-generated method stub
		return jvmDataDao.delete(id);

	}

	@Override
	public Long update(JvmData bean) {
		// TODO Auto-generated method stub
		return jvmDataDao.update(bean);
	}

	@Override
	public JvmData load(Long id) {
		// TODO Auto-generated method stub
		return jvmDataDao.load(id);
	}

	@Override
	public List<JvmData> list() {
		// TODO Auto-generated method stub
		return jvmDataDao.list();
	}

	@Override
	public Long count() {
		// TODO Auto-generated method stub
		return jvmDataDao.count();
	}

	@Override
	public Long countByName(String name) {
		// TODO Auto-generated method stub
		return jvmDataDao.countByName(name);
	}

	@Override
	public JvmData loadByName(String name) {
		// TODO Auto-generated method stub
		return jvmDataDao.loadByName(name);
	}

	@Override
	public List<JvmData> pager(Long pageNum, Long pageSize) {
		// TODO Auto-generated method stub
		return jvmDataDao.pager(pageNum, pageSize);
	}

	@Override
	public List<JvmData> pagerByName(String name, Long pageNum, Long pageSize) {
		// TODO Auto-generated method stub
		return jvmDataDao.pagerByName(name, pageNum, pageSize);
	}

	@Override
	public List<JvmData> pagerUsually(Long pageNum, Long pageSize) {
		// TODO Auto-generated method stub
		return jvmDataDao.pagerUsually(pageNum, pageSize);
	}
}
